
#include "Game.h"


//--------------------------
CConfirmTip::CConfirmTip()
{
	m_CheckTime = 0;
}

CConfirmTip::~CConfirmTip()
{
	
}

void CConfirmTip::Init(DWORD dwtab[], INT ix, INT iy, DWORD Time, DWORD Round, DWORD dwPri)
{
	m_dwtab = dwtab;
	m_ix	= ix;
	m_iy	 = iy;
	m_Time   = Time;
	m_Round = Round;
	m_dwPri	 = dwPri ;
}

void CConfirmTip::Check()
{
	if( !IsEnd() )
		return ; 
	
	if(m_CheckTime == 0)
	{
		m_CheckTime = GetTime(eClockSystem) ;
	}
	else if(GetTime(eClockSystem) > m_CheckTime + 5000)
	{
		Show(g_GameApp.GetEntityManager(), m_dwtab, m_ix, m_iy, m_Time, m_Round, m_dwPri);
	}
}

void CConfirmTip::Del()
{
	CGame_ActionTip::Del();
	m_CheckTime = 0;
}

//----------
DWORD	g_ConfirmTipTab[] = 
{
	eIDStart_To_End,
	IDD_SHAKE_TIP_0001_BMX,
	IDD_SHAKE_TIP_0020_BMX,
};

CConfirmTip g_ConfirmTip;






